<template>
  <div class="app-container">
    <div class="add-btn">
      <el-button type="primary">添加用户</el-button>
    </div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column label="用户名称" width="250">
        <template slot-scope="scope">{{ scope.row.name }}</template>
      </el-table-column>
      <el-table-column label="入库管理" width="200">
        <template slot-scope="scope">{{ scope.row.name }}</template>
      </el-table-column>
      <el-table-column label="出库管理" width="200">
        <template slot-scope="scope">{{ scope.row.name }}</template>
      </el-table-column>
      <el-table-column label="物资处理" width="200">
        <template slot-scope="scope">{{ scope.row.name }}</template>
      </el-table-column>
      <el-table-column label="查询统计" width="200">
        <template slot-scope="scope">{{ scope.row.name }}</template>
      </el-table-column>
      <el-table-column label="基础信息" width="200">
        <template slot-scope="scope">{{ scope.row.name }}</template>
      </el-table-column>
      <el-table-column label="系统管理" width="200">
        <template slot-scope="scope">{{ scope.row.name }}</template>
      </el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">修改</el-button>
          <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
    
    <script>
export default {
  data() {
    return {
      instorageValue: true,
      tableData: [
        {
          name: "王小虎",
          instorageValue: true,
          retrievalValue: true,
          handleValue: true,
          queryValue: true,
          manageValue: true
        },
        {
          name: "王小虎",
          instorageValue: false,
          retrievalValue: true,
          handleValue: true,
          queryValue: false,
          manageValue: true
        }
      ]
    };
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    }
  }
};
</script>
    
    <style>
.add-btn {
  display: flex;
  justify-content: end;
}
</style>
    